package com.zhiyou100.controller;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import com.zhiyou100.exception.LoginException;
import com.zhiyou100.vo.ResponseVo;


@RestControllerAdvice
public class ExceptionController {


	@ExceptionHandler(LoginException.class)
	public  ResponseVo<String> loginExceptionHandler(LoginException ex){
		

		return new ResponseVo<>(ex.getErrorCode(),ex.getErrorMessage(),null);
	}
	
}
